@echo off

call build.bat

REM Get current date
for /f "tokens=1,2" %%u in ('date /t') do set d=%%v 
for /f "tokens=1" %%u in ('time /t') do set t=%%u 
if "%t:~1,1%"==":" set t=0%t% 
rem set timestr=%d:~6,4%%d:~3,2%%d:~0,2%%t:~0,2%%t:~3,2% 
set datestr=%d:~6,4%%d:~0,2%%d:~3,2% 
set timestr=%t:~0,2%%t:~3,2% 
SET CURRENT_DATE=%datestr:~0,8%

python googlecode_upload.py -s "ExtJS Toolkit Nightly Build %CURRENT_DATE%" -p extjstoolkit build/extjstoolkit-nightly-%CURRENT_DATE%.tar.gz